import axios from 'axios'

const get = (options) => {
    return  axios(options)
     .then((result) => {
         return result;
     })
     .catch((err) => {
         return err;
     })
}
const post =  ( url, options) => {
   return axios.post( url , options)
    .then((result) => {
        return result;
    })
    .catch((err) => {
        alert('请重新加载');
        return err;
    })
}
export {
    get,
    post
}